
#include <sys/wait.h>

#include "rstatd.h"

Err rp_rstatd_scoreboard_monitor(Scoreboard *scoreboard, int *extra);
Err rp_rstatd_scoreboard_init(Scoreboard *scoreboard);		
Err rp_rstatd_scoreboard_finalize(Scoreboard *scoreboard);
Err rp_rstatd_scoreboard_register(Scoreboard *scoreboard, Worker *worker);
Worker *rp_rstatd_scoreboard_remove(Scoreboard *scoreboard, rp_pid_t pid);
Worker *rp_rstatd_scoreboard_remove_total(Scoreboard *scoreboard);
Worker *rp_rstatd_scoreboard_remove_idle(Scoreboard *scoreboard, int extra);
Err rp_rstatd_scoreboard_cleanup(Scoreboard *scoreboard);

